/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package zilvic.game.character.inventory;

import zilvic.resources.Parsable;

/**
 *
 * @author Erik
 */
public abstract class Item implements Parsable {
    private boolean equiped;
    private int armorValue;
    private double weight;
    private String name;
    private int id;
    private int occupiesSlot;
    private int damageValue;

    public Item(int id, String name, boolean equiped, int armorValue, int damageValue, double weight, int occupiesSlot) {
        this.equiped = equiped;
        this.armorValue = armorValue;
        this.weight = weight;
        this.name = name;
        this.id = id;
        this.occupiesSlot = occupiesSlot;
        this.damageValue = damageValue;
    }
    public int getArmorValue(){
	return armorValue;
    }
    public String getName(){
        return name;
    }
    public int getId(){
        return id;
    }
    public int getOccupiesSlot(){
        return occupiesSlot;
    }
    public boolean isEquiped(){
        return equiped;
    }
        public int getDamageValue(){
	return damageValue;
    }
    public double getWeight(){
        return weight;
    }

    public byte[] toBytes() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void fromBytes(byte[] bytes) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}